{% extends "./base.html" %}
{% load static %}

{% load comment_block %}

{% block title %} {{ post.title }} {% endblock %}

{% block extra_head %}
<link rel="stylesheet" href="{% static 'css/highlight/googlecode.min.css' %}">
<script src="{% static 'js/highlight/highlight.min.js' %}"></script>
<script>hljs.initHighlightingOnLoad();</script>
{% endblock %}

{% block main %}
    {% if post %}
    <h1>{{ post.title }}</h1>
    <div>
        <span>分类：{{ post.category.name }} </span>
                <span>作者：{{ post.owner.username }}</span>

    </div>
    <hr/>
    <p>
        {% autoescape off %}
        {{ post.content_html }}
        {% endautoescape %}
    </p>
    {% endif %}
<div>
    {% comment_block request.path %}
</div>

{% endblock %}